package moh.s2.s2Facade.impl;

import java.util.List;

import moh.s2.s2Facade.AsFacade;
import moh.s2.s2entity.AppSettingVO;
import moh.s2.s2service.AsService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class AsFacadeImpl  implements AsFacade {

	@Autowired
	@Qualifier("asService")
	AsService asService;
	
		
	public AsService getAsService() {
		return asService;
	}

	public void setAsService(AsService asService) {
		this.asService = asService;
	}

	@Override
	public List<AppSettingVO> getAppSettings() {
		
		System.out.println("asFacadeImpl getAppSettings");
		
		List<AppSettingVO> lst = asService.getAppSettings();
		for(AppSettingVO v:lst) {
			//System.out.println("asService:  " + v);
		}
		// TODO Auto-generated method stub
		return lst; //asService.getAppSettings();
	}

	@Override
	public AppSettingVO get(int id) {
		return asService.get(id);
	}
	
	@Override
	public List<AppSettingVO> getAppSettings(String mainId) {
		System.out.println("AsFacade.getAppSettings " + mainId);
		return asService.getAppSettings(mainId);
	}

	@Override
	public AppSettingVO getAppSetting(String mainId, String subId) {
		return asService.getAppSetting(mainId, subId);
	}

	@Override
	public List<AppSettingVO> getAppSettings(AppSettingVO appSettingVO) {
		return asService.getAppSettings(appSettingVO);
	}

	@Override
	public AppSettingVO add(AppSettingVO appSettingVO) {
		return asService.add(appSettingVO);
	}

	@Override
	public boolean delete(String mainId, String subId) {
		return asService.delete(mainId, subId);
	}
	
	@Override
	public boolean delete(int id) {
		return asService.delete(id);
	}

	@Override
	public AppSettingVO update(AppSettingVO appSettingVO) {
		return asService.update(appSettingVO);
	}



	
}
